package com.qf.feign;

import com.qf.entity.OrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 你的名字
 * @Date: 2021/07/28/20:36
 * @Description:
 */
@FeignClient(name = "order",path ="orderController" )
public interface OrderService {
    @RequestMapping("/getOrderByOid/{oid}")
    public OrderEntity getOrderByOid(@PathVariable("oid") String oid);

    @RequestMapping("/getInfoByOid/{oid}")
    public OrderEntity getInfoByOid(@PathVariable("oid") String oid);
}
